#pragma once
#include "PDTExpNumSing.h"
#include "PDTConst.h"

class PDTNumConst:public PDTExpNumSing, public PDTConst {
public:
	PDTNumConst(PDTCodeGraph & CG);
	NodeTypeEnum getType(){return PDTNumConst_Em;}
	virtual PDTNode* getNode()  {return this;}


};

class PDTNumConstInt: public PDTNumConst{
private:
	int value;
public:
	PDTNumConstInt(PDTCodeGraph & CG,int value);
	int getValue(){return value;}
	bool isPDTNumConstInt(){return true;}
	NodeTypeEnum getType(){return PDTNumConstInt_Em;}


};

class PDTNumConstDbl:public PDTNumConst{
private:
	double value;
public:
//	void initialize();
	PDTNumConstDbl(PDTCodeGraph & CG,double value);
	double getValue(){return value;}
	NodeTypeEnum getType(){return PDTNumConstDbl_Em;}
	bool isPDTNumConstDbl(){return true;}

};

